const system = uni.getSystemInfoSync()
export const statusBarHeight = () => system.statusBarHeight || 15

export const TitleBarHeight = () =>{
	if(uni.getMenuButtonBoundingClientRect){
		let {top,height} = uni.getMenuButtonBoundingClientRect()
		return height + (top - statusBarHeight()) * 2
	}else{
		return 40
	}
}
export const navBarHeight = () => statusBarHeight() + TitleBarHeight()
export const tabBarHeight = () => system.screenHeight - system.safeArea